<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%String user = "admin"; %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<table >
		<tr>
			<td>苹果</td>
		</tr>
		<tr>
			<td>香蕉</td>
		</tr>
		<tr>
			<td>西瓜</td>
		</tr>
	</table>
	<table>
<%
	String co [] = {"1","2","3","4","5","6"};
	for(int i = 0;i<co.length;i++){
	%>
		<tr>
			<td>
			略略略
			<%=co[i] %>
			</td>
		</tr>
<%	}
 %>
 </table>
 
 <ul>
 	<%
 		if(user.equals("admin")){
 	%>
 		<li style = "width:200px; float: left;padding-right:5px;list-style-type:none;">
 			你好！<%=user %>管理员
 		</li>
 		<li style = "width:200px; float: left;padding-right:5px;list-style-type:none;">
 			<a href="">编辑用户</a>
 		</li>
 		<li style = "width:200px; float: left;padding-right:5px;list-style-type:none;">
 			<a href="">删除用户</a>
 		</li>
 	<%
 		}else{
 	 %>
 	 <li style = "width:200px; float: left;padding-right:5px;list-style-type:none;">
 			你好！<%=user %>管理员
 		</li>
 		<li style = "width:200px; float: left;padding-right:5px;list-style-type:none;">
 			<a href="">编辑用户</a>
 		</li>
 		<li style = "width:200px; float: left;padding-right:5px;list-style-type:none;">
 			<a href="">登录</a>
 		</li>
 	 
 	 <%
 	 }
 	  %>
 </ul>
</body>
</html>